xen/arm: Save/restore GICH_VMCR on domain context switch
authorJulien Grall <julien.grall@linaro.org>
Tue, 18 Feb 2014 13:58:21 +0000 (13:58 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 18 Feb 2014 17:34:32 +0000 (17:34 +0000)
commit910b590601970440bdb135ed83fe28d8a755173e
tree9dcc3f7389dab0e66a58b0b0fe931202f3f3ea21
parent4959e0eacf56456a4b16d59e98cec58f7c2d66be
xen/arm: Save/restore GICH_VMCR on domain context switch

GICH_VMCR register contains alias to important bits of GICV interface such as:
    - priority mask of the CPU
    - EOImode
    - ...

We were safe because Linux guest always use the same value for this bits.
When new guests will handle priority or change EOI mode, VCPU interrupt
management will be in a wrong state.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Cc: George Dunlap <george.dunlap@citrix.com>
xen/arch/arm/gic.c